<template>
  <div class="con_container" :class="{ w65: collapse }">
    <BreadCrumb />
    <div class="con_view">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import BreadCrumb from "./BreadCrumb";
export default {
  components: {
    BreadCrumb,
  },
  computed: {
    collapse() {
      return this.$store.state.user.collapse;
    },
  },
};
</script>

<style lang="less" scoped>
.con_container {
  position: absolute;
  top: 70px;
  right: 0;
  bottom: 0;
  left: 250px;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
  .con_view {
    margin-top: 60px;
    padding: 10px 20px;
  }
}
.w65 {
  left: 65px;
}
</style>